serialize

open override fun serialize(encoder: Encoder, value: Pair<String, Float>)

Serializes a Pair of emotion and intensity.

Parameters

encoder

The encoder used to serialize the data.

value

The pair of emotion and intensity to serialize.